package com.qcxk.yuqian.rtu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qcxk.yuqian.rtu.controller.model.query.RtuDataDTO;
import com.qcxk.yuqian.rtu.entity.Rtu;
import com.qcxk.yuqian.rtu.entity.RtuHisData;
import com.qcxk.yuqian.rtu.entity.RtuMeter;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @auther lp
 * @create 2021-11-15 03:23:05
 * @describe mapper类
 */
@Repository
public interface RtuMeterMapper extends BaseMapper<RtuMeter> {
  int   batchAddRtuMeterData(List<RtuMeter>  list) ;
  List<Map<String,String>> selectRtuMeter(@Param("id") Long id);
  List<Map<String, String>> selectListRtuMeterById(@Param("id") Long id);
  Map<String, String> selectRtuMeterById(@Param("id") Long id);
  Map selectRtuMeterByIdAndMeterCode(@Param("id") Long id,@Param("meterCode") String meterCode);
  Map selectRtuMeterByRtuIdAndMeterCode(@Param("id") Long id,@Param("meterCode") String meterCode);
  int  add(RtuMeter rm);
}
